package com.huiyuan.mapper;

import com.huiyuan.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author huiyuan080
 * @data 2023/5/2
 * @apiNote
 */
@Mapper
public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    /**
     * 分页查询会员用车的记录
     *
     * @param userId
     * @return
     */
    List<Order> getPage(@Param("userId") Integer userId);
}